//
//  DSTestButton.h
//  Competition
//
//  Created by 段帅 on 16/4/14.
//  Copyright © 2016年 newfuture. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface DSTestButton : UIButton

@property (nonatomic,assign) BOOL isCanUse;


+(DSTestButton*)btnType:(UIButtonType)type;

- (UIImage *)imageWithColor:(UIColor *)color;
- (UIImage *)imageByApplyingAlpha:(CGFloat)alpha  image:(UIImage*)image;
@property (nonatomic,assign) NSInteger timeMiao;

@property (nonatomic,strong) NSTimer *dsTimer;
@property (nonatomic,strong) CADisplayLink *displayLink;



@property (nonatomic, copy) NSString *(^PhoneBlock)(void);
@property (nonatomic, copy) NSString * (^typeBlock)(void);
@property (nonatomic, copy) void (^faildBlock)(NSString *statusCode);
@property (nonatomic, copy) void (^sucessdBlock)(NSString *statusCode);
@property (nonatomic,strong) UIColor     * main_color;

@end
